// 从localStorage获取token
export const getToken = (): string => { 
  const token:string = uni.getStorageSync('token') || ''
  return token
}

// 设置token到localStorage中
export const setToken = (token: string): void => { 
  uni.setStorageSync('token', token)
}

// 删除localStorage中的token
export const removeToken = (): void => { 
  uni.removeStorageSync('token')
}